//
//  RYSwitchCellModel.swift
//  App_Profile
//
//  Created by 蒋晨成 on 2022/2/9.
//

import CloudKit
import Foundation

public class RYSwitchCellModel: RYTitleCellModel {
    public typealias SwitchAction = (RYBaseCellModel, Bool) -> Void
    public var isOn: Bool
    var switchAction: SwitchAction?
    public init(title: String, isOn: Bool = false, switchAction: SwitchAction?) {
        self.isOn = isOn
        self.switchAction = switchAction
        super.init(title: title, action: nil, cellType: RYSwitchCell.self)
        isHiddenIndicator = true
    }
}
